Skip to main content

Notification Webhook

Business needs to provide the endpoint URL where the notifications of Message status will be sent.


API Endpoint

Provided by the business

Authentication Methods Supported

Both Basic and Bearer Token methods are supported. If Basic method is chosen, business needs to set the username and password. In case of Bearer method, the corresponding token will be configured by the business.


Status Callback Payloads

1. Sent Status Callback

{
"messageId": "wamid.HBgMOTE5NjY4NDEyMDY4FQIAERgSREEwQkYxNjIxMTk5ODRDNddzAA==",
"messageRef": "aa_cta",
"subscriberId": "919672242292",
"status": "sent",
"sentAt": 1788939562
}

2. Delivered Status Callback

{
"messageId": "wamid.HBgMOTE5NjY4NDEyMDY4FQIAERgSREEwQkYxNjIxMTk5ODRDNddzAA==",
"messageRef": "aa_cta",
"subscriberId": "919672242292",
"status": "delivered",
"deliveredAt": 1788939562
}

3. Read Status Callback

{
"messageId": "wamid.HBgMOTE5NjY4NDEyMDY4FQIAERgSREEwQkYxNjIxMTk5ODRDNddzAA==",
"messageRef": "aa_cta",
"subscriberId": "919672242292",
"status": "read",
"readAt": 1788939562
}

4. Failed Status Callback

{
"messageId": "wamid.HBgMOTE5NjY4NDEyMDY4FQIAERgSREEwQkYxNjIxMTk5ODRDNddzAA==",
"messageRef": "aa_cta",
"subscriberId": "919672242292",
"status": "failed",
"failedAt": 1788939562,
"failureReason": "Message failed to send because more than 24 hours have passed since the customer last replied to this number.",
"failureDetails": "Message failed to send because more than 24 hours have passed since the customer last replied to this number.",
"errorCode": 131047
}

Properties

FieldTypeDescription
messageIdstringUnique identifier for the message
messageRefstringReference ID / tag assigned to the message
subscriberIdstringDestination phone number
statusstringStatus of the message (sent, delivered, read, failed)
sentAtnumberEpoch timestamp when message was sent
deliveredAtnumberEpoch timestamp when message was delivered
readAtnumberEpoch timestamp when message was read
failedAtnumberEpoch timestamp when delivery failed
failureReasonstringBrief reason for message failure
failureDetailsstringDetailed explanation of the failure
errorCodenumberNumerical error code

Response

  • HTTP Status Code: 200 OK (successful), 4xx/5xx (error)